package chixing.day10.work;

public class Test {
    public static void main(String[] args) {
        OrderProcessingService service = new OrderProcessingService();

        // 处理个人订单(数量2500)
        PersonalOrder personalOrder = new PersonalOrder();
        personalOrder.setOrderId("P-1001");
        personalOrder.setQuantity(2500);
        personalOrder.setPersonalDetails("个人详情...");
        service.processAndSaveOrder(personalOrder);

        // 处理企业订单(数量1500)
        EnterpriseOrder enterpriseOrder = new EnterpriseOrder();
        enterpriseOrder.setOrderId("E-2001");
        enterpriseOrder.setQuantity(1500);
        enterpriseOrder.setCompanyDetails("");
        service.processAndSaveOrder(enterpriseOrder);
    }
}
